package com.cyk.comicforumjava.demos.service.impl;

import com.cyk.comicforumjava.demos.base.PageBean;
import com.cyk.comicforumjava.demos.base.ResponseResult;
import com.cyk.comicforumjava.demos.enits.Section;
import com.cyk.comicforumjava.demos.enits.Zone;
import com.cyk.comicforumjava.demos.mapper.ZoneMapper;
import com.cyk.comicforumjava.demos.service.ZoneService;
import com.cyk.comicforumjava.demos.vo.ZoneVo;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class ZoneServiceImpl implements ZoneService {

    @Autowired
    private ZoneMapper zoneMapper;
    @Override
    public ResponseResult allZone() {
        List<Zone>zones=zoneMapper.allZone(null);
        System.out.println(zones);
        return ResponseResult.success(zones);
    }
}
